package cn.paul.junit;

import cn.paul.domain3.Student;
import cn.paul.mapper.StudentMapper;
import cn.paul.utils.SqlSessionUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

/**
 * Created by paul on 2017-06-23.
 */
public class Many2OneTest {
    @Test
    public void test(){
       SqlSession sqlSession= SqlSessionUtils.getSession();
       StudentMapper sm = sqlSession.getMapper(StudentMapper.class);
       Student student =sm.selectStudentById(1);
        System.out.println(student);

    }

}
